package test_20210531;

public class TestInner2 {

//    可以定义内部接口，且可以定义另外一个内部类实现这个内部接口
    public interface Fly{
        void doFly();
    }

    public class Inner implements Fly{
        @Override
        public void doFly() {
            System.out.println("I'm SuperMan");
        }
    }

    public static void main(String[] args) {
        TestInner2 inner = new TestInner2();
        TestInner2.Fly in = inner.new Inner();
        in.doFly();
    }
}
